package com.easy.framework.common.utils;


/**
 * 雪花算法生成ID
 * Author Yang HuiJIng  Email 1073602@qq.com
 */
public class IdUtil extends cn.hutool.core.util.IdUtil {

    private static IdGeneratorSnowflake idGeneratorSnowflake=new IdGeneratorSnowflake();

    public static long getId(){
        return idGeneratorSnowflake.snowflakeId();
    }

    public static String getIdToString(){
        return idGeneratorSnowflake.snowflakeIdToString();
    }
}
